﻿using Simple.Tools;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Entity.View
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public class MenuView1:SimpleTree<MenuView1,string>
	{
		/// <summary>
		/// 
		/// </summary>
		public MenuView1() { }

		/// <summary>
		/// 菜单名称
		/// </summary>
		public string MenuName { get; set; }
		/// <summary>
		/// 排序号
		/// </summary>
		public int Soft { get; set; }

		/// <summary>
		/// 菜单路径
		/// </summary>
		public string MenuPath { get; set; }

		/// <summary>
		/// 菜单图标
		/// </summary>
		public string MenuIcon { get; set; }
	
		/// <summary>
		/// 是否有子菜单
		/// </summary>
		public bool IsChild { get; set; }

		/// <summary>
		///1-系统菜单 2-用户菜单
		/// </summary>
		public int MenuType { get; set; }
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		public override bool IsRoot()
		{
			return string.IsNullOrEmpty(this.ParentID) && this.ID == "0";
		}
	}
}
